import request from '@/utils/request'

// 查询生产报列表
export function listProducereport(query) {
  return request({
    url: '/bill/producereport/list',
    method: 'get',
    params: query
  })
}

// 查询生产报详细
export function getProducereport(id) {
  return request({
    url: '/bill/producereport/' + id,
    method: 'get'
  })
}

// 新增生产报
export function addProducereport(data) {
  return request({
    url: '/bill/producereport',
    method: 'post',
    data: data
  })
}

// 修改生产报
export function updateProducereport(data) {
  return request({
    url: '/bill/producereport',
    method: 'put',
    data: data
  })
}

// 删除生产报
export function delProducereport(id) {
  return request({
    url: '/bill/producereport/' + id,
    method: 'delete'
  })
}

// 导出生产报
export function exportProducereport(query) {
  return request({
    url: '/bill/producereport/export',
    method: 'get',
    params: query
  })
}

//生产报表明细
export function listProducereportitem(query) {
  return request({
    url: '/bill/producereportitem/list',
    method: 'get',
    params: query
  })
}

//生产计划报表
export function planlist(query) {
  return request({
    url: '/bill/producereport/planlist',
    method: 'get',
    params: query
  })
}

// 导出生产报
export function exportplanlist(query) {
  return request({
    url: '/bill/producereport/exportplanlist',
    method: 'get',
    params: query
  })
}